@if "%3"=="" goto END
@setlocal
@FOR /F "tokens=2,3*" %%i in ('svn info %1^|findstr "Revision"') do @echo VALUE "LastChange", "%%i" >%2
@echo VALUE "LastTime", "%date:~0,11%%time:~0,8%" >>%2
@echo VALUE "FileVersion", "%4.%5.%6.%7" >>%2
@echo VALUE "ProductVersion", "%4.%5.%6.%7" >>%2
@echo FILEVERSION %4,%5,%6,%7 >%3
@echo PRODUCTVERSION %4,%5,%6,%7 >>%3
:END